package controllers

import (
	"fmt"
	"github.com/astaxie/beego"
)

type UserController struct {
	beego.Controller
}

func (c *UserController) Get() {
	fmt.Println("User Get ...")
	c.Data["Website"] = "user"
	c.Data["Email"] = "user@gmail.com"
	c.TplName = "user.tpl"
}

func (c *UserController) Info() {
	fmt.Println("User Info ...")
	c.Ctx.WriteString("hello world")
}

func (c *UserController) GetId() {
	fmt.Println("User GetId ...")
	id := c.Ctx.Input.Param(":id")
	c.Ctx.WriteString(id)
}
